<?php

/**
 * @SWG\Resource(
 *  resourcePath="/global",
 *  description="系统全局"
 * )
 */
Route::group([
	'prefix' => 'api'
], function ()
{
	/**
     *
     * @SWG\Api(
     *   path="/captcha/sms",
     *   @SWG\Operation(
     *      method="POST",
     *      nickname="CaptchaSMSVcode",
     *      summary="获取短信验证码",
     *      notes="所有需要提供短信验证码的地方，都是通过此接口获取。",
     *      @SWG\Parameters(
     *          @SWG\Parameter(
     *              name="mobile",
     *              description="手机号码",
     *              paramType="query",
     *              required=true,
     *              type="string"
     *          )
     *      ),
     *      @SWG\ResponseMessages(
     *          @SWG\ResponseMessage(code=402, message="表单验证失败。"),
     *          @SWG\ResponseMessage(code=403, message="不能在60内重复获取。"),
     *          @SWG\ResponseMessage(code=200, message="成功。")
     *      )
     *   )
     * )
     */
	Route::post('captcha/sms', [
		'as' => 'CaptchaSMS',
		'uses' => 'Api\CaptchaController@getSmsVcode'
	]);
});